package com.sinopec.android.util;

import android.content.Context;
import android.widget.Toast;

/**
 * @ClassName:ToastUtil
 * @Description:Toast工具类
 * @author liuwei
 * @date 2011-6-8 06:39:32
 *
 */
public class ToastUtil {
	/**
	 * @Title :showToast
	 * @Description :
	 * @params @param context
	 * @params @param message
	 * @params @param duration
	 * @return void
	 * @throws
	 * 
	 */
	public static void showToast(Context context,String message,int duration){
		Toast toast = Toast.makeText(context, message, duration);
		toast.show();
	}
	
	public static void showToast(Context context,String message){
		Toast toast = Toast.makeText(context, message,0);
		toast.show();
	}
}
